package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 优惠卷表
 * @TableName t_coupon
 */
@TableName(value ="t_coupon")
@Data
public class Coupon implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠价名称
     */
    private String couponName;

    /**
     * 优惠价数量
     */
    private String quantiry;

    /**
     * 每人可领数量
     */
    private String claimableQuantity;

    /**
     * 剩余数量
     */
    private String surplusQuantity;

    /**
     * 优惠卷有效期
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    private String couponValidity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
